package Model;

import View.ObjectViews.ItemMineralLoteView;

public class ItemMineralLote {
	//Atributos
	private Mineral mineral;
	private float porcentaje;
	private int nroLote;
	
	//Getters
	public Mineral getMineral() 
	{
		return mineral;
	}
	public float getPorcentaje() 
	{
		return porcentaje;
	}

	public int getNroLote() {
		return nroLote;
	}
	
	//Setters
	public void setMineral(Mineral mineral) 
	{
		this.mineral = mineral;
	}
	public void setPorcentaje(float porcentaje) 
	{
		this.porcentaje = porcentaje;
	}
	
	public void setNroLote(int nroLote) {
		this.nroLote = nroLote;
	}

	//Constructor
	public ItemMineralLote(Mineral mineral, float porcentaje, int nroLote)
	{
		this.mineral = mineral;
		this.porcentaje = porcentaje;
		this.nroLote = nroLote;
		
	}
	
	//View getter
	public ItemMineralLoteView getView()
	{
		ItemMineralLoteView view = new ItemMineralLoteView();
		view.setMineral(this.getMineral().getView());
		view.setPorcentaje(this.getPorcentaje());
		
		return view;
	}
}
